import { createRouter, createWebHistory } from 'vue-router'
// import AboutView from '../views/AboutView.vue'
import ComponentEvent from '../views/ComponentEvent.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: ComponentEvent
    },
    {
      path: '/provide',
      name: 'provide',
      //  () => import('xxx') 实现路由懒加载
      component: () => import('../components/notification/provide/ProvideParent.vue')
    },
    {
      path: '/keep-alive',
      name: 'keepAlive',
      component: () => import('../views/currentComponent/KeepAlive.vue')
    },
    {
      path: '/dircetive',
      name: 'dircetive',
      component: () => import('../views/Dircetive/Index.vue')
    },
    {
      path: '/comment',
      name:'comment',
      component: () => import('../views/Comment.vue')
    },
    {
      path: '/echarts',
      name:'echarts',
      component: () => import('../views/EchartsView.vue')
    },
    {
      path: '/transfer',
      name:'transfer',
      component: () => import('../views/Transfer.vue')
    },
    {
      path: '/antv-s2',
      name:'antvS2',
      component: () => import('../views/AntvS2View.vue')
    }
  ]
})

export default router
